<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">
    <title>Debug</title>
    <script src="js/jquery.min.js"></script>
</head>
<body>

<div>
    <div class="config-item">
        Debug:
        <select name="" id="debug-select">
            <option value="0">禁用</option>
            <option value="1">启用</option>
        </select>
    </div>
</div>
<script>
                $(function(){
                    function bind(id, key) {
                        $(id).val(window.localStorage[key] || '0');
                        $(id).change(function () {
                            window.localStorage[key] = $(this).val();
                        });
                    }
                    bind("#debug-select", "baye/debug");
                });
</script>
</body>
</html>
